package beans;

import java.sql.Timestamp;

/**
 * Bean for managing Events data extracted from the database;
 * These are NOT entities in the database, as they gather different attributes from the Event and USERR 
 * through a JOIN operation.
 * The structure is based on what is going to presented on the web page.
 * @author Felix Mendoza

 */
// numberguestspot, numberparticipants

public class MyEventBean {
	
	private String Host;  // for the host mail
	private String hostName;
	private String Eventname;
	private Timestamp Stamp;
	private int Rating;
	private int hostavgRating; //Doesnt take into account quantity of events, just users ratings
	private boolean isGuest; //  true for guest, false for host
	private int nGuestspots;
	private int nParticipants;
	
	public String getEventname() {
	     return Eventname;
	}
	
	public void setEventname(String Eventname) {
		this.Eventname = Eventname;
	}
	
	public String gethostName() {
	     return hostName;
	}
	
	public void sethostName(String hostName) {
		this.hostName = hostName;
	}
	
	public String getHost() {
	     return Host;
	}
	
	public void setHost(String Host) {
		this.Host = Host;
	}
	public Timestamp getStamp() {
	     return Stamp;	
	}
	
	public void setStamp(Timestamp Stamp) {
		this.Stamp = Stamp;
		
	}
	
	public int getRating() {
		return Rating;
	}
	
	public void setRating(int Rating) {
		this.Rating= Rating;
	}
	
	public int gethostavgRating() {
		return hostavgRating;
	}
	
	public void sethostavgRating(int hostavgRating) {
		this.hostavgRating = hostavgRating;
	}
	
	public boolean getisGuest() {
		return isGuest;
	}
	
	public void setisGuest(boolean isGuest) {
		this.isGuest = isGuest;
	}
	
	public int getnGuestspots() {
	     return nGuestspots;
	}
	
	public void setnGuestspots(int nGuestspots) {
		this.nGuestspots = nGuestspots;
	}
	
	public int getnParticipants() {
	     return nParticipants;
	}
	
	public void setnParticipants(int nParticipants) {
		this.nParticipants = nParticipants;
	}
	
	
	
	public MyEventBean() {
		Eventname = null;
	}
	
//	This MyEventBean is for Past Events
	public MyEventBean(String Eventname, boolean isGuest, Timestamp Stamp, int Rating, int hostavgRating ) {
		super();
		this.Eventname = Eventname;
		this.isGuest = isGuest;
		this.Stamp = Stamp;
		this.Rating = Rating;
		this.hostavgRating = hostavgRating;
		
	}
	
//  This MyEventBean is for upcoming Events, therefore we have no ratings	
	public MyEventBean(String Eventname , boolean isGuest, Timestamp Stamp) {
		
		this.Eventname = Eventname;
		this.isGuest = isGuest;
		this.Stamp = Stamp;
	}
	
}
